package com.sweet.fourtimeoa.controller;

import com.sweet.fourtimeoa.pojo.dto.*;
import com.sweet.fourtimeoa.pojo.vo.PageVo;
import com.sweet.fourtimeoa.service.OperationLogService;
import com.sweet.fourtimeoa.util.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@Tag(name = "操作日志")
@RestController
@RequestMapping("/oa/operationLog")
@CrossOrigin(origins = "*")
public class OperationLogController {
    @Autowired
    private OperationLogService operationLogService;
    @Operation(summary = "操作日志_分页查询")
    @PostMapping("/getSystemOperationLogList")
    public Result getSystemOperationLogList(@RequestBody PageDto<SystemOperationLogQueryDto> pageDto) {
        PageVo<SystemOperationLogList> systemOperationLogList = operationLogService.getSystemOperationLogList(pageDto);
        return Result.success(systemOperationLogList);
    }
}
